package com.guijq.design.command.simpleremote;

/**
 * @author yangjf
 * @version 0.1.0
 * @time 2018/10/23/023
 */
public class SimpleRemoteControl {
    Command slot;

    public SimpleRemoteControl() {

    }

    public void setCommand(Command command) {
        slot = command;
    }

    public void buttonWasPressed() {
        slot.execute();
    }

}
